import request from '@/utils/request'

// 查询客户信息历史列表
export function listCustomerhis(query) {
  return request({
    url: '/crm/customerhis/list',
    method: 'get',
    params: query
  })
}

// 查询客户信息历史详细
export function getCustomerhis(crmCustomerhisId) {
  return request({
    url: '/crm/customerhis/' + crmCustomerhisId,
    method: 'get'
  })
}

// 新增客户信息历史
export function addCustomerhis(data) {
  return request({
    url: '/crm/customerhis',
    method: 'post',
    data: data
  })
}

// 修改客户信息历史
export function updateCustomerhis(data) {
  return request({
    url: '/crm/customerhis',
    method: 'put',
    data: data
  })
}

// 删除客户信息历史
export function delCustomerhis(crmCustomerhisId) {
  return request({
    url: '/crm/customerhis/' + crmCustomerhisId,
    method: 'delete'
  })
}
